# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=perl-net-snmp
pkgver=6.0.1
pkgrel=11
pkgdesc="Perl interface to SNMP"
arch=('any')
url="https://search.cpan.org/dist/Net-SNMP"
license=("PerlArtistic")
depends=('perl' 'perl-digest-hmac' 'perl-digest-sha1' 'perl-crypt-des')
source=(https://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/Net-SNMP-v$pkgver.tar.gz)
sha256sums=('14c37bc1cbb3f3cdc7d6c13e0f27a859f14cdcfd5ea54a0467a88bc259b0b741')

build() {
  cd "$srcdir"/Net-SNMP-v$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-SNMP-v$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
